package edu.neusoft.yiqibike.common.entity.convert;

import edu.neusoft.yiqibike.common.entity.mysql.Permission;
import edu.neusoft.yiqibike.common.entity.vo.TreeVo;

/**
 * User：lyc
 * Date：2017-12-30
 * Time：13:21
 * Description：
 */
public class PermissionConverter extends Converter<TreeVo, Permission> {
    public PermissionConverter() {
        super(permission -> new TreeVo(permission.getId(), permission.getCode(), "permission"),
                vo -> new Permission(vo.getId(), vo.getLabel()));
    }
}
